import request from '@/utils/request'

export function queryPageCamera(query) {
    return request({
        url: '/iot/camera/queryPage',
        method: 'get',
        params: query
    })
}
export function addCamera(query) {
    return request({
        url: '/iot/camera/add',
        method: 'post',
        data: query
    })
}
export function updateCamera(query) {
    return request({
        url: '/iot/camera/update',
        method: 'put',
        data: query
    })
}
export function deleteCamera(id) {
    return request({
        url: `/iot/camera/delete/${id}`,
        method: 'delete',
    })
}
export function batchDeleteCamera(ids) {
    return request({
        url: `/iot/camera/batchDelete`,
        method: 'delete',
        data: ids
    })
}
export function batchUpdate(obj) {
    return request({
        url: `/iot/camera/batchUpdate`,
        method: 'put',
        data: obj
    })
}
export function synchronize() {
    return request({
        url: `/remote/camera/synchronize`,
        method: 'get',
        // data: obj
    })
}

// /remote/camera/synchronize

